<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Dialog Framework - <span class="subitem">Data</span>
    </ui:define>

    <ui:define name="description">
        Dialog Framework provides APIs to pass and retrieve data between the source page and the dialog.
    </ui:define>

    <ui:param name="documentationLink" value="/core/dialogframework" />

    <ui:define name="implementation">
        
        <h:form>
            <p:growl id="growl" showDetail="true" />

            <p:commandButton value="Select Car" icon="pi pi-home" action="#{dfView.chooseCar}">
                <p:ajax event="dialogReturn" listener="#{dfView.onCarChosen}" update="growl" />
            </p:commandButton>
        </h:form>
        
    </ui:define>

</ui:composition>